const https = require("https");

https.get("https://api.jisuapi.com/area/province?appkey=0c2ff7278f14af5a" , (res) => {
    let str = "";
    res.on("data" , (chunk) => {
        str += chunk;
    })
    res.on("end", () => {
        var obj = JSON.parse(str);
        var provinceList = obj.result;
        for(var i = 0 ; i < provinceList.length ; i++) {
            console.log(provinceList[i].name);
        }
        // console.log(str);
        console.log(obj);
    })
})